<style>
    body {
        font-family: 'Microsoft YaHei';
    }

    p {
        font-size: 4.5vw;
        margin-bottom: 0;
    }

    .menus{
        margin-top:0px;
    }
</style>

<body>
    <!-- 头部 -->
    <div class="top_div">
        <img src="/assets/home/images/bac.jpg" class="top_img">
        <div class="userInfo">
            <a href="javascript:void(0)">
                <img class="uPic" src="{$LoginAuth.avatar_text}" />
                <br />
            </a>
            <br />
            <p class="uBalance" style="color: rgb(74, 70, 66); ">
                {if condition="$LoginAuth.nickname"}
                    {$LoginAuth.nickname}
                {else /}
                    {$LoginAuth.mobile_text}
                {/if}
            </p>
        </div>
    </div>

    <!-- 菜单 -->
    <ul class="mui-table-view">
        <li class="mui-table-view-cell">
            <a class="mui-navigate-right" href="{:url('/home/business/business/profile')}">
                我的资料
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a href="{:url('/home/business/order/index')}" class="mui-navigate-right">
                我的课程
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a href="{:url('/home/business/data/index')}" class="mui-navigate-right">
                数据分析
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a href="{:url('/home/business/recharge/index')}" class="mui-navigate-right">
                充值
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a href="{:url('/home/business/contact/index')}" class="mui-navigate-right">
                联系我们
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a id="logout" class="mui-navigate-right">
                退出登录
            </a>
        </li>
    </ul>

    <!-- 底部 -->
    {include file="common/footer" /}
</body>

<script>
    $("#logout").click(function () {
        // 确认对话框
        mui.confirm('是否确认退出', '警告', ['退出', '取消'],
        function(e){
            if(e.index == 0)
            {
                // js跳转
                location.href = `/home/index/logout`
                return false
            }
        })
    })
</script>